<?php

namespace App\Filament\Resources\Admin\Users\Pages;

use App\Filament\Mine\MineBaseList;
use App\Filament\Resources\Admin\Users\UserResource;

class ListAdminUsers extends MineBaseList
{
    protected static string $resource = UserResource::class;

    public string $mineTitle = '管理员列表';

    public string $mineDescription = '新增、编辑、删除系统管理员，分配角色等';

    public static function canAccess(array $parameters = []): bool
    {
        return auth()->user()->can('admin.user.list');
    }
}
